package task

import (
	"errors"
)

var (
	// Task 数据指针为空
	ErrTaskIsNil = errors.New("task is nil")
	// Task Key 不能为空
	ErrTaskKeyEmpty = errors.New("task key is empty")
	// Task Key 不存在
	ErrTaskKeyNotExist = errors.New("task key not exist")
	// Task Handler 不能为空
	ErrTaskHandlerNil = errors.New("task handler is nil")
	// Task 执行时间无效
	ErrTaskExecuteAt = errors.New("task execute time is invalid")
	// Task 执行周期无效
	ErrTaskInterval = errors.New("task interval is invalid")
	// Task 已取消
	ErrTaskCancelled = errors.New("task is cancelled")
	// Task 已关闭
	ErrTaskClosed = errors.New("task is closed")
)
